package com.qf.rabbitmq.listeners;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MyRabbitListener {

    @RabbitListener(queues = {"buzhidaofadaona"})
    public void onMsg(String dasdf){
        System.err.println("springboot收到了消息"+ dasdf);
    }

    @RabbitListener(queues = {"huanyigeduilie"})
    public void onMsg1(String dasdf){
        System.err.println("springboot收到了消息"+ dasdf);
    }
}
